package com.jiac.coderunner.entity;

import com.google.common.base.CaseFormat;

import java.util.List;
import java.util.Set;

public class TableInfo {
    private String packageName;//文件所在包
    private String tableName;//表名
    private String camelName;//表名(驼峰)
    private String clsName;//类名
    private String tableDesc;//表备注
    private List<FieldInfo> fields;//表字段
    private List<String> impClses;//导入信息列表

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
        this.camelName = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.LOWER_CAMEL,tableName);
        this.clsName = CaseFormat.LOWER_UNDERSCORE.to(CaseFormat.UPPER_CAMEL,tableName);
    }

    public String getCamelName() {
        return camelName;
    }
    public String getClsName(){
        return clsName;
    }
    public String getTableDesc() {
        return tableDesc;
    }

    public void setTableDesc(String tableDesc) {
        this.tableDesc = tableDesc;
    }

    public List<FieldInfo> getFields() {
        return fields;
    }

    public void setFields(List<FieldInfo> fields) {
        this.fields = fields;
    }

    public List<String> getImpClses() {
        return impClses;
    }

    public void setImpClses(List<String> impClses) {
        this.impClses = impClses;
    }
}
